package yawning.mew.cat;

import yawning.mew.sim.SimulationEvent;

public class EventBloodInTheWaterRange extends SimulationEvent {
	CatModelSimState mState;
	boolean mInRange = false;
	
	EventBloodInTheWaterRange(CatModelSimState state) {
		super(state.mSimUtil);
		mState = state;
		schedule(state.mSimUtil.getEndTime() - (state.mSimUtil.getEndTime() * state.mModel.getBloodInTheWaterTime()));
	}

	@Override
	public void onExpire() {
		mInRange = true;

		mState.nrBiteBase = mState.nrBiteCrit + mState.nrBiteHit;
		mState.nrRipBase = mState.nrRipHit;
		mState.nrRipFailBase = mState.nrRipDodge + mState.nrRipMiss;
		mState.ripDamageBase = mState.ripDamage;

		mState.totalDamageBase = mState.whiteDamage + mState.furySwipesDamage + mState.mangleDamage + mState.rakeDamage + mState.rakeDotDamage + mState.shredDamage + mState.ripDamage + mState.biteDamage + mState.procPhysDamage + mState.procSpellDamage;
	}
}
